package com.ichoice.rabbitmq.rpc.helper.util;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * @author xianrensawang
 * @since 2021/2/1
 */
public final class AckIdUtil {

    private AckIdUtil(){

    }

    private static final Snowflake SNOWFLAKE;

    static {
        SNOWFLAKE = IdUtil.getSnowflake(1, 1);
    }

    public static long nextId() {
        return SNOWFLAKE.nextId();
    }
}
